﻿using System;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Reflection;
namespace BLL
{
	 	//SF_help_cont
		public static class SF_help_cont
	{	
	    private static Data.SF_help_cont Data_SF_help_cont = new Data.SF_help_cont();	
		
		/// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.SF_help_cont model)
        {
              return Data_SF_help_cont.Add(model);
        }
         /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Update(Model.SF_help_cont model)
        {
            return Data_SF_help_cont.Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static bool Delete(long Id)
        {
            return Data_SF_help_cont.Delete(Id);
        }       
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static Model.SF_help_cont GetModel(long Id)
        {
             return Data_SF_help_cont.GetModel(Id);
        }
        /// <summary>
        /// 总数据数
        /// </summary>
        /// <returns></returns>
        public static int GetAll_Count()
        {
            return Data_SF_help_cont.GetAll_Count();
        }        
        /// <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.SF_help_cont> GetPageList_Where(int pageIndex, int pageSize,string classid,out int totalCount)
        {          
             return Data_SF_help_cont.GetPageList_Where(pageIndex, pageSize,classid, out totalCount);
        }
        /// <summary>
        /// 抽取分页id从1到15数据
        /// </summary>
        public static List<Model.SF_help_cont> GetPageList_Whereby(int pageIndex, int pageSize, string sql, out int totalCount)
        {
            return Data_SF_help_cont.GetPageList_Whereby(pageIndex, pageSize, sql, out totalCount);
        }
        /// <summary>
        /// 批删
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public static int Drop(string Ids)
        {
            return Data_SF_help_cont.Drop(Ids);
        }
        public static List<Model.SF_help_cont> GetByClassid(long classid)
        {
            return Data_SF_help_cont.GetByClassid(classid);
        }
	}
}